home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / penguin_dinner.swf / scripts / __Packages / classes / game / OrderPlate.as < prev    next >
Text File  |  2008-03-17  |  617b  |  27 lines

  1. class classes.game.OrderPlate extends classes.ui.IconicButton
  2. {
  3.    function OrderPlate()
  4.    {
  5.       super();
  6.       this.setType(classes.game.Food.TYPE_NONE);
  7.    }
  8.    function setType($type)
  9.    {
  10.       this.foodType = $type;
  11.       this.gotoAndStop($type);
  12.    }
  13.    function onRelease()
  14.    {
  15.    }
  16.    function onPress()
  17.    {
  18.       if(this.locked)
  19.       {
  20.          return undefined;
  21.       }
  22.       classes.core.SoundManager.getInstance().startSound("click_game_object");
  23.       this.filters = [];
  24.       this.dispatchEvent(new classes.events.WidgetEvent(this,classes.ui.IconicButton.CLICK));
  25.    }
  26. }
  27.